package org.shj.pattern.observe

object ObserverMain {
  def main(args: Array[String]): Unit = {
    val stock = new Stock
    val gao = new GaoShou
    val jiucai = new JiuCai
    
    gao.subscribe(stock)
    jiucai.subscribe(stock)
    
    stock.setPrice(101)
    
  }
}